package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author hzd
 * @since 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("balance_msg")
@ApiModel(value = "BalanceMsg对象", description = "")
public class BalanceMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "库存id")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "商品id")
    @TableField("commodity_id")
    private Integer commodityId;

    @ApiModelProperty(value = "库存id")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "结存数量")
    @TableField("balance_quantity")
    private BigDecimal balanceQuantity;

    @ApiModelProperty(value = "单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "结存金额")
    @TableField("balance_price")
    private BigDecimal balancePrice;


    @ApiModelProperty(value = "类型")
    @TableField("balance_type")
    private Integer balanceType;


    @ApiModelProperty(value = "结存时间")
    @TableField("balance_time")
    private Date balanceTime;

    @ApiModelProperty(value = "操作人")
    @TableField("creator_by")
    private String creatorBy;

    @TableField("balance_number")
    private String balanceNumber;


    @ApiModelProperty(value = "商品名称")
    @TableField(exist = false)
    private String commodityName;

}
